﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace Sublimation.Behaviours
{
    public class UnitInertiaBehaviour : Behaviour
    {
        protected WorldProperties worldProperties;
        protected GameObject owner;
        protected float weight;
        public float getWeight() { return this.weight; }

        public UnitInertiaBehaviour(WorldProperties worldProperties, GameObject owner, float weight)
        {
            this.worldProperties = worldProperties;
            this.owner = owner;
            this.weight = weight;
        }

        public Vector2 RunBehaviour()
        {
            // the urge to continue to move in the same direction

            return owner.Velocity * weight;
        }
    }
}
